from flask import Flask, current_app
from Day05.d08_snowflake import IdWorker

app = Flask(__name__)
app.id_worker = IdWorker(1, 2, 0)

@app.route('/')
def index():
    print(current_app.id_worker.get_id())
    return 'index'

if __name__ == '__main__':
    app.run(host='192.168.226.129')